package etnorservice.etnor_service.service.impl;

import etnorservice.etnor_service.domain.po.Notice;
import etnorservice.etnor_service.mapper.NoticeMapper;
import etnorservice.etnor_service.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/06/30/14:48
 **/
@Service
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    NoticeMapper noticeMapper;
    @Override
    public List<Notice> getNoticeCurrent() {
        return noticeMapper.getNoticeCurrent();
    }

    @Override
    public Notice getNoticeDetail(String id) {
        return noticeMapper.getNoticeDetail(id);
    }
}
